[gd_scene load_steps=36 format=2]

[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://player/player0.png" type="Texture" id=2]
[ext_resource path="res://player/player1.png" type="Texture" id=3]
[ext_resource path="res://player/player3.png" type="Texture" id=4]
[ext_resource path="res://player/player2.png" type="Texture" id=5]
[ext_resource path="res://player/player10.png" type="Texture" id=6]
[ext_resource path="res://player/player9.png" type="Texture" id=7]
[ext_resource path="res://player/player8.png" type="Texture" id=8]
[ext_resource path="res://player/player6.png" type="Texture" id=9]
[ext_resource path="res://player/player4.png" type="Texture" id=10]
[ext_resource path="res://player/player5.png" type="Texture" id=11]
[ext_resource path="res://player/player7.png" type="Texture" id=12]
[ext_resource path="res://sfx.tscn" type="PackedScene" id=13]
[ext_resource path="res://Camera Wall.tscn" type="PackedScene" id=14]
[ext_resource path="res://Camera2D.gd" type="Script" id=15]
[ext_resource path="res://CameraWall.gd" type="Script" id=16]
[ext_resource path="res://OffScreenIndicator.png" type="Texture" id=17]
[ext_resource path="res://player/player14.png" type="Texture" id=18]
[ext_resource path="res://player/player13.png" type="Texture" id=19]
[ext_resource path="res://player/player11.png" type="Texture" id=20]
[ext_resource path="res://player/player12.png" type="Texture" id=21]
[ext_resource path="res://player/player15.png" type="Texture" id=22]
[ext_resource path="res://player/player16.png" type="Texture" id=23]

[sub_resource type="StreamTexture" id=1]
load_path = "res://.import/player8.png-adf3ef69486861351481ae3610edc932.stex"

[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 2 ) ],
"loop": false,
"name": "idle",
"speed": 1.0
}, {
"frames": [ ExtResource( 6 ) ],
"loop": false,
"name": "jump",
"speed": 1.0
}, {
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ) ],
"loop": true,
"name": "run",
"speed": 20.0
}, {
"frames": [ ExtResource( 7 ) ],
"loop": false,
"name": "skid",
"speed": 5.0
}, {
"frames": [ ExtResource( 9 ) ],
"loop": true,
"name": "dead",
"speed": 1.0
}, {
"frames": [ ExtResource( 3 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 4 ), ExtResource( 5 ) ],
"loop": true,
"name": "walk",
"speed": 16.0
}, {
"frames": [ ExtResource( 8 ) ],
"loop": true,
"name": "crouch",
"speed": 5.0
}, {
"frames": [ ExtResource( 10 ), ExtResource( 11 ), ExtResource( 9 ), ExtResource( 12 ), SubResource( 1 ) ],
"loop": false,
"name": "roll",
"speed": 8.0
} ]

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 5, 8 )

[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ ExtResource( 20 ) ],
"loop": false,
"name": "idle",
"speed": 1.0
}, {
"frames": [ ExtResource( 22 ) ],
"loop": true,
"name": "jump",
"speed": 5.0
}, {
"frames": [ ExtResource( 21 ), ExtResource( 19 ), ExtResource( 18 ), ExtResource( 19 ) ],
"loop": true,
"name": "run",
"speed": 16.0
}, {
"frames": [ ExtResource( 23 ) ],
"loop": true,
"name": "skid",
"speed": 5.0
}, {
"frames": [ ExtResource( 21 ), ExtResource( 21 ), ExtResource( 19 ), ExtResource( 18 ), ExtResource( 18 ), ExtResource( 19 ) ],
"loop": true,
"name": "walk",
"speed": 14.0
} ]

[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 8, 8 )

[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 17 )
region = Rect2( 0, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 17 )
region = Rect2( 16, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 17 )
region = Rect2( 32, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 17 )
region = Rect2( 48, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 17 )
region = Rect2( 64, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=11]
atlas = ExtResource( 17 )
region = Rect2( 80, 0, 16, 16 )

[sub_resource type="SpriteFrames" id=12]
animations = [ {
"frames": [ SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 7 ) ],
"loop": true,
"name": "up",
"speed": 8.0
}, {
"frames": [ SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 10 ) ],
"loop": true,
"name": "down",
"speed": 8.0
} ]

[node name="Node2D" type="Node2D"]
script = ExtResource( 16 )

[node name="CameraLeftWall" parent="." instance=ExtResource( 14 )]

[node name="CameraRightWall" parent="." instance=ExtResource( 14 )]

[node name="CollisionShape2D" parent="CameraRightWall" index="0"]
rotation = 4.71239

[node name="Player" type="KinematicBody2D" parent="."]
script = ExtResource( 1 )

[node name="big" type="AnimatedSprite" parent="Player"]
visible = false
frames = SubResource( 2 )
animation = "idle"
playing = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
scale = Vector2( 1, 2 )
shape = SubResource( 3 )
disabled = true
__meta__ = {
"_edit_lock_": true
}

[node name="CollisionShape2D2" type="CollisionShape2D" parent="Player"]
position = Vector2( 0, 8 )
shape = SubResource( 3 )

[node name="Camera2D" type="Camera2D" parent="Player"]
position = Vector2( 0, 1 )
current = true
zoom = Vector2( 0.5, 0.5 )
limit_left = 0
limit_top = -240
limit_bottom = 0
drag_margin_h_enabled = true
drag_margin_left = 1.0
drag_margin_top = 1.0
drag_margin_right = 0.0
drag_margin_bottom = 0.0
script = ExtResource( 15 )
__meta__ = {
"_edit_lock_": true
}

[node name="sfx" parent="Player" instance=ExtResource( 13 )]
script = null

[node name="small" type="AnimatedSprite" parent="Player"]
frames = SubResource( 4 )
animation = "idle"
playing = true
offset = Vector2( 0, 8 )
__meta__ = {
"_edit_lock_": true
}

[node name="RunCollision" type="CollisionShape2D" parent="Player"]
position = Vector2( 0, 8 )
shape = SubResource( 5 )

[node name="OffScreenIndicator" type="AnimatedSprite" parent="."]
position = Vector2( 0, -184 )
frames = SubResource( 12 )
animation = "down"
frame = 1
playing = true
[connection signal="offScreen" from="Player" to="." method="_on_Player_offScreen"]
[connection signal="onScreen" from="Player" to="." method="_on_Player_onScreen"]
[connection signal="cam_position" from="Player/Camera2D" to="." method="_on_Camera2D_cam_position"]

[editable path="CameraLeftWall"]

[editable path="CameraRightWall"]
